<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let arr = [1,5,2,3,7,4];
        arr.push(99,22);
        arr.pop();
        console.log(arr);
        arr.shift();
        console.log(arr);
        for(index of arr){
            console.log(index);
        }
        arr.forEach((index,item,arr)=>{
            console.log("item:"+item);
            console.log(index);
        })
    </script>


</head>
<body>
    
</body>
</html>